Skip to content

hal: Update motion to getter/setter. - #4286

Open
BsAtHome wants to merge 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_motion
Open

hal: Update motion to getter/setter.#4286
BsAtHome wants to merge 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_motion

Conversation

@BsAtHome

Copy link
Copy Markdown
Contributor

Update the motion controller code. It is mostly a trivial conversion, but there are many pins.

Some pin creation was changed to be consistently wrapped in the CALL_CHECK() macro. Also, some ternaries or trivial if/else constructs in setting boolean values were reduced to one-liners.

Comment thread src/emc/motion/axis.c
aaccel_limit = axis->acc_limit;
} else {
aaccel_limit = *(axis_data->ajog_accel_fraction) * axis->acc_limit;
aaccel_limit = hal_get_real(axis_data->ajog_accel_fraction) * axis->acc_limit;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have the version with the single getter on top here as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants